package com.api.shopapi.service;

import com.api.shopapi.entity.DeviceYjgateway;
import com.api.shopapi.entity.dto.DeviceYjgatewayDTO;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

@Service
public interface DeviceYjgatewayService {

    int insert(DeviceYjgateway deviceYjgateway);

    int update(DeviceYjgateway deviceYjgateway);


    DeviceYjgateway getByGatewayId(String gatewayId);

    DeviceYjgateway getByUserCode(String userCode);

    PageInfo<DeviceYjgatewayDTO> getPage(int pageIndex,int pageSize,String phone,String gatewayId);
}
